<script setup lang="ts">
enum Dirrection {
  Up = 1,
  Down,
  left = 102,
  right,
  text = 'a'
}
//总共有 数字枚举（常用） 字符串枚举  数字字符串枚举
// 数字枚举后面会自动累加，字符串枚举后面必须每个都赋值无法推导
// const Obj: Dirrection = Dirrection.Down 等价
const Obj: Dirrection = 2
console.log(Obj)
</script>

<template>
  <div class="playground-page">
    <h1>playground</h1>
  </div>
</template>

<style scoped lang="scss"></style>
